<%@ page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML>
<html>
  <head>
    <title>student</title>
    <jsp:include page="/util/head.jsp"></jsp:include>
  </head>
  
  <body>
    
    <div class="toolDiv">
    	<a href="/jsp/editStudent.jsp">添加</a>
    </div>
    
    <table cellpadding="0" cellspacing="1" class="tableList">
    	<colgroup>
    		<col width="40"/>
    		<col width="100"/>
    		<col width="100"/>
    		<col width="100"/>
    		<col width="100"/>
    		<col/>
    	</colgroup>
    	<tr class="trTitle">
    		<th></th>
    		<th>学号</th>
    		<th>姓名</th>
    		<th>专业</th>
    		<th>班级</th>
    		<th>操作</th>
    	</tr>
    	<c:forEach var="item" items="${list}" varStatus="vs">
    		<tr>
    			<td class="xh">${vs.count}</td>
    			<td>${item.studentId}</td>
    			<td>${item.realName}</td>
    			<td>${item.classes.major.major}</td>
    			<td>${item.classes.className}</td>
    			<td class="opTd">
    				<a href="">修改</a> |
    				<a href="">删除</a>
    			</td>
    		</tr>
    	</c:forEach>
    </table>
    
  </body>
</html>
